package com.gy.smartmanagement.process.processdevice.adapter;

import android.content.Context;

import com.gy.smartmanagement.R;
import com.gy.smartmanagement.base.adapter.BaseRecyclerAdapter;
import com.gy.smartmanagement.process.processdevice.mvp.NumberBean;

import java.util.List;

import androidx.annotation.NonNull;
import tl.com.easy_recycleview_library.BaseRecyclerViewHolder;

public class NumberAdapter extends BaseRecyclerAdapter<NumberBean> {

  public NumberAdapter(Context context, @NonNull List<NumberBean> listData, int layoutID) {
    super(context, listData, layoutID);
  }

  @Override
  protected void bindDataToView(BaseRecyclerViewHolder holder, NumberBean item, int position) {
    holder.setText(R.id.item_device_name_tv,item.getName());
    holder.setText(R.id.item_device_total_tv,""+item.getTotalNum());
    holder.setText(R.id.item_device_open_tv,""+item.getOpenNum());
    holder.setText(R.id.item_device_close_tv,""+item.getCloseNum());
  }


}
